package com.chuanjiabao.wisdom.util.dialog;

import android.content.Context;
import android.databinding.DataBindingUtil;
import android.view.LayoutInflater;
import android.view.View;

import com.chuanjiabao.wisdom.R;
import com.chuanjiabao.wisdom.databinding.DialogCreateFamilyBinding;
import com.chuanjiabao.wisdom.listener.OnBHClickListener;

public class CreateFamilyDialog extends BaseDialog {

    private OnBHClickListener onBHClickListener;

    public CreateFamilyDialog(Context context) {
        super(context);
        DialogCreateFamilyBinding binding = DataBindingUtil.inflate(
                LayoutInflater.from(context),
                R.layout.dialog_create_family,
                null,
                false
        );
        binding.setDialog(this);
        setContentView(binding.getRoot());
    }

    public void setOnBHClickListener(OnBHClickListener onBHClickListener) {
        this.onBHClickListener = onBHClickListener;
    }

    public void noPoint(View view) {
        if (onBHClickListener != null) {
            onBHClickListener.onCloseClick();
        }
        dismiss();
    }

}


